<?php
session_start();

$_SESSION['base'] = $_POST['base'];

if ($_SESSION['base'] == '') {
    die('erro');
}
header('Location: ../index');

if (isset($_SESSION['base'])){
    header('Location: ../login/');
}

?>
